package com.siyuan2;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

/**
 * @className: UserFactoryBean
 * @Description: TODO
 * @author: wzq
 * @date: 2022/8/25 16:18
 */
@Component
public class UserFactoryBean implements FactoryBean {
	@Override
	public Object getObject() throws Exception {
		User user = new User();
		return user;
	}

	@Override
	public Class<?> getObjectType() {
		return User.class;
	}
}
